package com.huawei.gamebox.plugin.gameservice.action;

import android.app.Activity;
import com.huawei.appgallery.assistantdock.base.externalaction.openviewaction.IOpenViewAction;
import com.huawei.appgallery.assistantdock.base.externalaction.openviewaction.RemoteBuoyAction;
import com.huawei.secure.android.common.intent.SafeIntent;
import java.io.Serializable;
import o.dys.a;
import o.fcb;
import o.fcd;

public class OpenGiftDialogAction extends IOpenViewAction {
    public OpenGiftDialogAction(a aVar, SafeIntent safeIntent) {
        super(aVar, safeIntent);
    }

    public void onAction() {
        dispatchOpenGiftDialog();
    }

    private void dispatchOpenGiftDialog() {
        Activity activity = (Activity) this.callback;
        Serializable serializableExtra = this.intent.getSerializableExtra(RemoteBuoyAction.REMOTE_BUOY_PARAM);
        if (serializableExtra instanceof fcd) {
            fcb.ˊ(activity, (fcd) serializableExtra);
        }
    }
}
